<?php
namespace app\common\model;

use think\Model;

class User extends Model
{
    // 指定表名,不含前缀
    protected $name = 'user';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    /**
     * 报名表和项目进行关联
     */
    public function userKind()
    {
        return $this->belongsTo("Kind","user_kind");
    }
    /**
     * 和班级表关联
     */
    public function userStu()
    {
        return $this->belongsTo("Stu","user_class");
    }
}
